package com.woorigil.social.domain.flower;

import com.woorigil.social.domain.CouponSqlMapDaoSupport;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * User: Nicejinux
 * Date: 13. 7. 30.
 * Time: 오전 12:04
 * To change this template use File | Settings | File Templates.
 */
@Repository
public class FlowerInfoDao extends CouponSqlMapDaoSupport<FlowerInfo, Integer> {
    public static final String NAMESPACE = "FlowerInfo";

    @Override
    public String getNamespace() {
        return NAMESPACE;
    }

    public List<FlowerInfo> getAllFlowerInfo() {
        return getSqlMapClientTemplate().queryForList(getStatementName(NAMESPACE, "selectAllFlowerInfo"));
    }

//    @SuppressWarnings("unchecked")
//    public List<FlowerInfo> search(FlowerCondition condition) {
//        return getSqlMapClientTemplate().queryForList(getStatementName(NAMESPACE, "search"), condition);
//    }


}
